export default {
  path: "/user",
  name: "UserCenter",
  component: () => import("@/views/user/index.vue"),
  redirect: "/user/overview",
  children: [
    {
      path: "overview",
      name: "UserOverview",
      component: () => import("@/views/user/overview.vue"),
      meta: {
        title: "个人中心",
        requiresAuth: true,
      },
    },
    {
      path: "topics",
      name: "UserTopics",
      component: () => import("@/views/user/topics.vue"),
      meta: {
        title: "参与的话题",
        requiresAuth: true,
      },
    },
    {
      path: "activities",
      name: "UserActivities",
      component: () => import("@/views/user/activities.vue"),
      meta: {
        title: "参与的活动",
        requiresAuth: true,
      },
    },
    {
      path: "articles",
      name: "UserArticles",
      component: () => import("@/views/user/articles.vue"),
      meta: {
        title: "发表的文章",
        requiresAuth: true,
      },
    },
    {
      path: "posts",
      name: "UserPosts",
      component: () => import("@/views/user/posts.vue"),
      meta: {
        title: "发布的动态",
        requiresAuth: true,
      },
    },
    {
      path: "guides",
      name: "UserGuides",
      component: () => import("@/views/user/guides.vue"),
      meta: {
        title: "发表的攻略",
        requiresAuth: true,
      },
    },
    {
      path: "photos",
      name: "UserPhotos",
      component: () => import("@/views/user/photos.vue"),
      meta: {
        title: "发布的摄影",
        requiresAuth: true,
      },
    },
    {
      path: "orders",
      name: "UserOrders",
      component: () => import("@/views/user/orders.vue"),
      meta: {
        title: "我的订单",
        requiresAuth: true,
      },
    },
    {
      path: "favorites",
      name: "UserFavorites",
      component: () => import("@/views/user/favorites.vue"),
      meta: {
        title: "我的收藏",
        requiresAuth: true,
      },
    },
    {
      path: "cart",
      name: "UserCart",
      component: () => import("@/views/user/cart.vue"),
      meta: {
        title: "购物车",
        requiresAuth: true,
      },
    },
    {
      path: "address",
      name: "UserAddress",
      component: () => import("@/views/user/address.vue"),
      meta: {
        title: "收货地址",
        requiresAuth: true,
      },
    },
    {
      path: "reviews",
      name: "UserReviews",
      component: () => import("@/views/user/reviews.vue"),
      meta: {
        title: "我的评价",
        requiresAuth: true,
      },
    },
    {
      path: "messages",
      name: "UserMessages",
      component: () => import("@/views/user/messages/index.vue"),
      meta: {
        title: "消息中心",
        requiresAuth: true,
      },
    },
    {
      path: "settings",
      name: "UserSettings",
      component: () => import("@/views/user/settings.vue"),
      meta: {
        title: "账号设置",
        requiresAuth: true,
      },
    },
  ],
};
